
// components/auth/Provider.tsx
'use client';
import React, {ReactNode} from 'react';
import {SessionProvider} from "next-auth/react";

// 包装session provider, 直接放layout + use client, 会报错
export default function AuthProvider({children}: { children: ReactNode }) {
    return (
        <SessionProvider>
            {children}
        </SessionProvider>
    );
};